PR UKRAINE ON ANDROID (Winlator) - complete guide
==================================================
PR Ukraine is a Windows game. On Android it runs inside Winlator, a free app that runs Windows games on the phone
(Wine + Box64). You play on the SAME servers as the PC players.
Online guide with pictures: https://wareastwarfare.com/pr-ukraine/android

WHICH PHONES?
  - Best: Snapdragon chip with an Adreno GPU, Snapdragon 8 Gen 2 or newer (Galaxy S23 / S24 / S25, Xiaomi, OnePlus...).
  - 8 GB of RAM minimum, 12 GB recommended. Android 12 or newer.
  - About 20 GB free during the installation (7 GB download + 9 GB game), 10 GB afterwards.
  - Weaker phones (Snapdragon 7 / 8 Gen 1, Exynos, MediaTek): it may start but be slow. The game warns you when the phone
    has less than 8 GB of RAM.
  - A Bluetooth controller is recommended (touch controls are included).

1. INSTALL WINLATOR (once)
  - Download Winlator ONLY from its official page: https://github.com/brunodev85/winlator/releases
    -> the latest "Winlator_xx.x.apk" (Winlator_11.2.apk or newer). Allow "Install unknown apps" if Android asks.
  - Open Winlator once and let it prepare its files (a few minutes).

2. DOWNLOAD THE GAME
  - PR Ukraine is in closed testing: join the PR Ukraine Discord (https://wareastwarfare.com/pr-discord), apply in
    #become-a-tester. Testers click "Android (Winlator)" in TESTERS > download to get their personal link.
  - It is the same zip as PC (about 7 GB): the Android files are already inside. Download it on the phone and extract
    it with ZArchiver into the Download folder. You get:
        Download/PR Ukraine/PRBF2.exe
        Download/PR Ukraine/PR Ukraine ANDROID.bat
        Download/PR Ukraine/pr_ukraine/android/...
  - Zip downloaded before December 1st? Download the small Android kit and extract it INTO Download/PR Ukraine/:
        https://wareastwarfare.com/assets/media/pr-ukraine/android/PR-Ukraine-Android-Kit.zip

3. CREATE THE WINLATOR CONTAINER (once)
  In Winlator: Containers > + (new container)
  - Name: PR Ukraine
  - Screen size: 1280x720 (weak phone: 1024x576)
  - Graphics driver: Turnip (Adreno). Other phones: the default driver.
  - DX wrapper: DXVK. If the screen stays black or the game closes: WineD3D.
  - Audio driver: ALSA
  - Win Components: direct3d, directsound, directmusic, directshow, directplay, xaudio = Native (Windows)
  - Advanced: Box64 preset "Performance" (if the game closes by itself: "Stability"), video memory 2048 MB or more
  - Drives: keep D: = the Download folder (default)
  - Save.

4. INSTALL WINE MONO (once, needed by the PR launcher)
  - Start the PR Ukraine container (play button).
  - Windows Start menu > System Tools > Installers > Wine Mono > install, wait until it finishes.

5. START PR UKRAINE
  - In the container: File Manager > D: > PR Ukraine > double-tap "PR Ukraine ANDROID.bat".
  - A black window opens: it updates PR Ukraine (the first time it downloads about 750 MB, wait until it says
    "file(s) updated"), applies light graphics for phones, connects to our servers, then opens the PR launcher.
  - KEEP THE BLACK WINDOW OPEN while you play (it is your connection to the servers). It closes by itself after the game.
  - PR launcher: Login > PLAY OFFLINE > create a profile (your name) > PLAY.
  - In the game: PLAY PR UKRAINE > JOIN SERVER > choose "PR Ukraine" (co-op with bots) or "PR Ukraine - Event" > JOIN.
    If the list is empty, wait 10 seconds and refresh.
  - Tip: in the File Manager, keep the .bat on the Winlator desktop (shortcut) for the next times.

6. TOUCH CONTROLS
  - Open the Winlator menu (Android back gesture) > Input Controls > the 3 dots > Import profile >
    D: (Download) > PR Ukraine > pr_ukraine > android > "PR Ukraine.icp". Then choose the profile "PR Ukraine".
  - Move: left pad. Look: drag your finger on an empty part of the screen. FIRE, AIM (right mouse), RELOAD, JUMP, USE
    (enter vehicles, pick up kits), DROP, SPRINT, CROUCH, PRONE, WHEEL+/- (zoom, fire mode).
  - Top bar: ESC, TAB (scoreboard), ENTER, MAP, RADIO (Q), ORDERS (T), SQUAD (Caps Lock), CHAT.
  - Top right: swipe the number strip to choose weapons 0-9 and vehicle seats F1-F12.
  - You can move or resize every button in Input Controls > Edit.

7. BLUETOOTH CONTROLLER
  - Winlator menu > Input Controls > profile "PR Ukraine" > Controllers > add your controller, then map:
      Left stick = W A S D        Right stick = mouse          RT = left mouse (fire)   LT = right mouse (aim)
      A = Space (jump)            B = Left Ctrl (crouch)       X = R (reload)           Y = E (use)
      LB = Q (radio)              RB = Z (prone)               L3 = Left Shift (sprint) R3 = M (map)
      D-pad = 1 2 3 4 (weapons)   Start = Esc                  Back = Tab

8. PLAYING WITH PC PLAYERS - PHONE LIMITS
  - Same servers, same battles as PC players: you join them, they see you.
  - The phone gets LIGHT GRAPHICS automatically the first time (lowest quality, 1280x720). Strong phone: raise them in
    OPTIONS > VIDEO. The resolution used the first time is in pr_ukraine/android/android.txt.
  - Expect about 20-40 images per second on a Snapdragon 8 Gen 2/3/Elite. Big maps (Hostomel) and many vehicles are the
    heaviest. Close every other app, play plugged in and keep the phone cool (it slows down when it gets hot).
  - Proximity voice is not available on Android yet.

9. PROBLEMS
  - Black screen / game closes at start: DX wrapper WineD3D, or Box64 preset Stability.
  - The PR launcher does not open: Wine Mono is not installed (step 4).
  - "PR Ukraine is not here": the kit was not extracted INTO Download/PR Ukraine (step 2).
  - No server in JOIN SERVER: the black window must stay open; check the phone's internet; wait 10 s and refresh.
  - Update errors: start the .bat again, only the missing files are downloaded.
  - Send in #bug-reports (PR Ukraine Discord): a screenshot + the files pr_ukraine/android/android.log and network.log.

PR Ukraine - Powered by Project Reality & Battlefield 2. Independent fan project, not affiliated with the Project Reality
team, DICE or Electronic Arts. Winlator by brunodev85 (LGPL-2.1, https://github.com/brunodev85/winlator).
